package com.syl.upimg.bean;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * @author syl
 * @create 2019-05-06 14:30
 **/
@Setter
@Getter
@ToString
@NoArgsConstructor
@Accessors(chain = true)
public class BaiDuBean extends BaseBean{
    private int errno;
    private String errmsg;
    @JsonProperty("ret")
    private Result result;
    private int error_code;
    private String error_msg;


    @Setter
    @Getter
    @ToString
    @NoArgsConstructor
    @Accessors(chain = true)
    public class Result {
        @JsonProperty("app_id")
        private String appId;
        @JsonProperty("bos_url")
        private String bosUrl;
        @JsonProperty("https_url")
        private String httpsUrl;
        @JsonProperty("org_url")
        private String orgUrl;
        private String mime;
        private String name;
        @JsonProperty("no_waterlog_bos_url")
        private String noWaterlogBosUrl;
        private long size;
        private String type;
    }

}
